#ifndef FPLAYER_ANDROIDCAMERACAPTURE_H
#define FPLAYER_ANDROIDCAMERACAPTURE_H


#include "Capture.h"
#include "android/JNIHelper.h"

/**
 * author: x-fan
 * date: 2024/1/12
 * desc: Android相机画面的采集
 */
class AndroidCameraCapture : public ICapture{
private:
  //Java类
  jclass _CaptureClass = nullptr;
  //Java 相机采集对象
  jobject _CaptureObj = nullptr;

public:
  AndroidCameraCapture(CameraDevice *pCapDev);

  virtual ~AndroidCameraCapture() noexcept;

  void startCapture() override;

  void stopCapture() override;

  int32_t capacity() override;

  const char *getClassName() override;
};


#endif //FPLAYER_ANDROIDCAMERACAPTURE_H
